package com.lonwin.inspectionmanagement.mvp.ui.adapter;

import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lonwin.inspectionmanagement.R;
import com.lonwin.inspectionmanagement.mvp.model.entity.bean.CruiseLocusBean;

import java.util.List;

/**
 * Author: zhangjing
 * DATA:2018/11/22 上午10:19
 * DESC:
 * email:zhangjingworkmol@163.com
 */
public class RiverAdapter extends BaseQuickAdapter<CruiseLocusBean.DataBean,BaseViewHolder>{
    public RiverAdapter(@Nullable List<CruiseLocusBean.DataBean> data) {
        super(R.layout.cruise_recording_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CruiseLocusBean.DataBean item) {
         helper.setText(R.id.cruise_recording_item_title,item.getTitle())
                 .setText(R.id.cruise_recording_item_RiverLakeName,item.getGroupname())
         .setText(R.id.cruise_recording_item_point,"打点记录："+item.getQuestcount());
        helper.addOnClickListener(R.id.cruise_recording_item_point_btn).addOnClickListener(R.id.cruise_recording_item_Trajectory_btn);

    }
}
